package yydy.pattern.structure.decorator.example;

import yydy.pattern.common.interfaces.Shape;

/**
 * @author LY
 * @description: TODO
 * @title: RedShapeDecorator
 * @projectName yydy_learn
 * @date 2020/11/4
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        super.draw();
        this.SetRedBorder(decoratedShape);
    }

    private void SetRedBorder(Shape decoratedShape){
        System.out.println("Border Color: red");
    }
}
